package com.tanhua.server.controller;

import com.tanhua.server.Interceptor.UserHolder;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/huanxin")
public class HuanxinController {

    /**
     *接口名称：环信用户信息
     * 接口路径：GET/huanxin/user
     *
     */
    @RequestMapping("/user")
    public ResponseEntity huanxinUser(){
        Map<String,String> paramMap = new HashMap<>();
        paramMap.put("username", UserHolder.getUserId()+"");
        paramMap.put("password","123456");
        return ResponseEntity.ok(paramMap);
    }
}
